﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Task:NPCF
    {
        private string npcinfo;

        public string Sxnpc { get => npcinfo; set => npcinfo = value; }

        public Task(string name,NPCType Type1, string npcinfo) :base(name, Type1) 
        {
            this.npcinfo = npcinfo;
        }

        public override void Speak()
        {
            Console.WriteLine("{0}:帮我？，任务：{1}", this.Name,this.npcinfo);
        }
    }
}
